#include "SpecialComparable.h"

SpecialComparable::SpecialComparable()
{
	position_ = -1;
	special_ = 0;
}

SpecialComparable::SpecialComparable(int pos, char spec)
{
	position_ = pos;
	special_ = spec;
}

char SpecialComparable::getSpecial() const
{
	return special_;
}

bool SpecialComparable::compare(SpecialComparable b)
{
	if (special_ ^ b.getSpecial())
		return false;
	else
		return true;
}
